<form action="{$base_url}&action=news_save" method="post" enctype="multipart/form-data">
	<input type="hidden" id="new_id" name="new[id]" value="{$new->id}" />
	<div class="collumns">
		<div class="collumn_2" style="width: 79%">
			<textarea class="redactor" id="new_text" name="new[text]" cols="30" rows="10">{$new->text}</textarea>
		</div>
		<div class="collumn_2" style="width: 19%">
			<div class="row">
				<label for="new_title">Заголовок</label>
				<input type="text" id="new_title" name="new[title]" value="{$new->title}" />
			</div>
			<div class="row">
				<label for="new_category">Категория</label>
				<select id="new_category" name="new[category]">
					<option value=""></option>
					{foreach $cats as $cat}
					<option value="{$cat->id}"{if $cat->id == $new->id} selected="selected"{/if}>{$cat->title}</option>
					{/foreach}
				</select>
			</div>
			<div class="row">
				<label for="new_title">Дата публикации</label>
				<input type="text" class="date" id="new_date_publish" name="new[date_publish]" value="{date('d.m.Y',$new->date_publish)}" />
			</div>
			<div class="row images">
				{if empty($new->img_ext)}
					<input type="file" id="new_img" name="new_img"/>
				{else}
					<a href="{$new->img}" class="colorbox"><img src="{$new->imgTumb}" alt=""/></a><br />
					<input type="checkbox" id="new_del_img" name="new[del_img]" value="1" />&nbsp;<label for="new_del_img">Удалить картинку</label>
				{/if}
			</div>
		</div>
	</div>
	<div class="buttons">
		<input type="submit" value="Сохранить" class="save" />
		<input type="submit" value="Применить" name="apply" class="apply" />
		<input type="reset" value="Отменить" class="cancel" onclick="history.go(-1)" />
	</div>
</form>